-- GENERATED SPELL FOR [Silkwing] --


function spell0_21373(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(32914,pUnit)
pUnit:RegisterEvent('Sorts_21373', 1000, 1)
end

function Sorts_21373(pUnit, Event)
local choix_sorts_21373 = math.random(0, 0)
if choix_sorts_21373 == 0 then
pUnit:RegisterEvent('spell0_21373', 1, 1)
end
end

function mob21373_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21373', math.random(1500, 3000), 1)
end

function mob21373_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21373_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21373_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21373, 1, 'mob21373_Action')
RegisterUnitEvent(21373, 2, 'mob21373_Leave')
RegisterUnitEvent(21373, 3, 'mob21373_Kill')
RegisterUnitEvent(21373, 4, 'mob21373_Die')
